CFILE := $(wildcard *.c)
C_UTIL_F := $(wildcard ../../common/*.c)
IP_GET_O_FILE := $(patsubst %.c,%.o,$(filter ip_get%.c,$(CFILE)))

all: ip_get

ip_get: ip_get.out

ip_get.out: $(IP_GET_O_FILE) $(C_UTIL_F)
	gcc $^ -o $@



%.o: %.c
	gcc -c $^ -o $@
c: clean
clean: 
	rm *.o -f
	rm *.out -f